package com.hexu.event.service;

import com.hexu.event.dao.AttractionsDao;
import com.hexu.event.entity.Attractions;

import java.util.List;

public class AttractionsService {
    private AttractionsDao attractionsDao = new AttractionsDao();

    //返回景点所有信息
    public List<Attractions> getAttractionsInformation(){
        return attractionsDao.getAttractionsInformation();
    }

    //返回景点数量
    public int attractionsNumber(){
        return attractionsDao.attractionsNumber();
    }

    //购票
    public boolean buyTicketAttractions(Attractions attractions){
        return attractionsDao.buyTicketAttractions(attractions);
    }

    //返回单个景点所有信息
    public Attractions getAttraction(String attractionName){
        return attractionsDao.getAttraction(attractionName);
    }

    //评论
    public boolean commentAttractions(Attractions attractions){
        return attractionsDao.commentAttractions(attractions);
    }

}
